//
//  EMUploadProfile.h
//  PictureSelector
//
//  Created by Lyy on 15/8/26.
//  Copyright (c) 2015年 Lyy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    EMUploadProfileLoginQQ,
    EMUploadProfileLoginWeibo,
    EMUploadProfileLoginOther,
} EMUploadProfileLoginType;

typedef void(^ProfileImage)(UIImage *image);

@interface EMUploadProfile : NSObject

//+ (instancetype)shareManager;

- (void)uploadProfile:(EMUploadProfileLoginType)loginType profileUrl:(NSString *)urlString
   rootViewController:(UIViewController *)rootViewContrller
       uploadComplete:(void (^)(UIImage *userProfileImage))uploadComplete;

@property (nonatomic ,copy)ProfileImage profileImage;

@end
